package com.wxzz.elearing.course.api.server;


import com.wxzz.elearing.course.service.IWxUserCurriculumService;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/wx-course-api")
public class WxCourseApi {

    @Autowired
    private IWxUserCurriculumService wxUserCurriculumService;

    /**
     * 支付成功确认
     *
     * @return
     */
    @RequestMapping(value = "/handlerNotifyCurriculum/{userOrderId}", method = RequestMethod.POST)
    public ReturnVO<String> handlerNotifyCurriculum(@PathVariable Long userOrderId) {
        return wxUserCurriculumService.handlerNotifyCurriculum(userOrderId);
    }



}
